define([''],function () {
    return {
        path: '/input',
        name: 'input',
        component: function (resolve) {
            const Foo = {
                template: get('vue/input.vue').responseText,
                data:function () {
                    return{
                        input:{
                            one:'2',
                            two:'3',
                            three:'4',
                            four:'5',
                            five:'6',
                            sex:'8'
                        }
                    }
                },
                methods:{
                    submit:function () {
                        var data = $('#myfrom').serializeArray();
                        var makeArr = function (Arr) {
                            var nameArr = [];
                            if(Arr){
                                $.each(Arr, function(index, val) {
                                    nameArr[val['name']] = val['value'];
                                });
                                return nameArr;
                            }else{
                                return false;
                            }
                        };
                    }
                }
            };
            resolve(Foo);
        }
    }
});